leds-gpio: Remove stray assignment to brightness_set
authorPhil Elwell <phil@raspberrypi.org>
Tue, 28 Mar 2017 16:41:30 +0000 (17:41 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:36:54 +0000 (17:36 +0000)
commit9f8b75c24f0871eb4873748465f50d818b3dd3cf
treec181cfa1e8be91ab7971450fb8cd40b831601a41
parent001d0546dd9c7d3cce4db6bfbcd6ed345faad792
leds-gpio: Remove stray assignment to brightness_set

The brightness_set method is intended for use cases that must not
block, and can only be used if the GPIO provider can never sleep.
Remove an accidental initialisation (a copy-and-paste error) that
sets it regardless, which has been seen to cause crashes with the
gpio expander driver.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/leds/leds-gpio.c